import http from '@/utils/http'
const env = import.meta.env
const BASE_URL4 = env.PROD ? `${env.VITE_API_BASE_URL4}/admin` : '/fulu'
const BASE_URL8 = env.PROD ? `${env.VITE_API_BASE_URL8}/admin` : '/buyer'
/** @desc 结算列表 */
export function activitySettleSearch(params: any) {
  return http.get(`${BASE_URL4}/v1/activitySettle/settleSearch`, params)
}

/** @desc 批次记录 */
export function batchRowsSearch(params: any) {
  return http.get(`${BASE_URL4}/v1/activitySettle/batchRowsSearch`, params)
}

/** @desc 审核 */
export function batchTaskAudit(params: any) {
  return http.get(`${BASE_URL4}/v1/activitySettle/batchTask/audit`, params)
}

/** @desc 获取结算记录日志 */
export function batchTaskGetLog(params: any) {
  return http.get(`${BASE_URL4}/v1/activitySettle/batchTask/getLog`, params)
}

/** @desc 结算顶部统计 */
export function settleHeadData(params: any) {
  return http.get(`${BASE_URL4}/v1/activitySettle/settleHeadData`, params)
}

/** @desc 批次记录 */
export function activityBatchDetail(params: any) {
  return http.get(`${BASE_URL4}/v1/activitySettle/getBatchDetail`, params)
}

// 活动详情
export function activAppDetail(data: any) {
  return http.post(`${BASE_URL8}/v1/app/activity/detail`, data)
}

// 结算用户数统计
export function activitySettleUserNum(data: any) {
  return http.post(`${BASE_URL4}/v1/activitySettle/settleUserNum`, data)
}
